package com.spring.demo4.eg7;

import org.springframework.context.annotation.Import;

/**
 * @author vhans
 */
/*
DeferredImportSelector1 -> name2 优先数2
DeferredImportSelector2 -> name4 优先数1
Configuration3          -> name3
ImportSelector1         -> name1
 */
@Import({
        DeferredImportSelector1.class, // 默认情况下，DeferredImportSelector最后导入，其他按照value值指定的先后顺序
        Configuration3.class,
        ImportSelector1.class,
        DeferredImportSelector2.class // 可以通过实现Ordered接口或者使用注解@Order指定DeferredImportSelector的优先级
})
public class MainConfig7 {
}
